package main

import "fmt"

func main() {
	demo1()
	demo2()
	demo3()
	demo4()
}

func demo1() {
	a := [2]int{1}
	fmt.Println(a)
}

func demo2() {
	a := [...]int{1, 2, 3}
	fmt.Println(a)
}

func demo3() {
	a := [5]int{0: 1, 3: 2, 4: 3}
	fmt.Println(a)
}

func demo4() {
	a := [...]int{0: 1, 3: 2, 4: 3}
	fmt.Println(a)
}
